Quick Reference - Syntax

The following table summarizes metacharacters and sequences (

\<char> ) used in SNiFF+ regular expressions.

Regex | matches
\ | escape
. | any character except newline
* | zero or more occurrences of preceding
+ | at least 1 occurrence of preceding
? | zero or one occurrence of preceding only
^ | beginning of line
$ | end of line
[...] | character list
[^...] | complement of character list
!<regex> | everything except <regex> -- only in SNiFF+ filter fields
\b<regex> | word begins with <regex>
<regex>\b | word ends with <regex>
\B<regex> | word does not begin with <regex>
<regex>\B | word does not end with <regex>
\`<regex> | file begins with <regex>
\´<regex> | file ends with <regex>
\f | formfeed
\n | newline
\r | carriage return
\t | tab
\v | vertical tab
\s | any nonprinting character, that is, [ \f\n\r\t\v]
\S | any printing character, that is [^ \f\n\r\t\v]
\d | any digit, that is [0-9]
\D | any non-digit [^0-9]
\w | any word constituent, that is [A-Za-z0-9_]
\W | any non-word constituent, that is [^A-Za-z0-9_]
\(<regex>\) | groups
\1...\9 | back references to groups
\| | alternative
%s | used in filters to reference a retrieved string in the Retriever